package ai4games_tests.tests;

import game2dai.entities.MovingEntity;
import game2dai.entities.Vehicle;
import game2dai.maths.Vector2D;
import processing.core.PApplet;

public class PolyTest01 extends PApplet {

	Vehicle v;
	MovingEntity me;
	
	
	public void setup(){
		size(200,200);
		
		me = new MovingEntity(new Vector2D(200,200), // position
				10, // collision radius
				new Vector2D(10,10), // velocity
				40, // maximum speed
				new Vector2D(1,1), // heading
				1, // mass
				10,  // turning rate
				200 // max force
		); 
		v = new Vehicle(new Vector2D(200,200), // position
				10, // collision radius
				new Vector2D(10,10), // velocity
				40, // maximum speed
				new Vector2D(1,1), // heading
				1, // mass
				10,  // turning rate
				200 // max force
		); 
		
		dothis(me);
		dothis(v);

	}
	
	public void dothis(MovingEntity mover){
		println("MovingEntity " + mover.getClass().toString());
	}
	
	public void dothis(Vehicle mover){
		println("Vehicle " + mover.getClass().toString());
	}
}
